<?
        require_once('../../Inc/Global.php');
        require_once('AddressData.php');
        $rs = GetAddress($_REQUEST['ID']);
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../Main.css" />
<title>View Users</title>
</head>
<body>
	<p>You have selected:</p>
	                    <div>
	                    	<label>ID:</label>
	                    	<?=$rs['ID']?>
	                    </div>
	                    <div>
	                    	<label>Category_ID:</label>
	                    	<?=$rs['Category_ID']?>
	                    </div>
                        <div>
                        	<label>Person_ID:</label>
                       		<?=$rs['Person_ID']?>
                        </div>
                        <div>
                        	<label>Address Line 1:</label>
                        	<?=$rs['Address_Line1']?>
                        </div>
                        <div>
                        	<label>Address Line 2:</label>
                        	<?=$rs['Address_Line2']?>                      
                        </div>
                        <br />
                        <div>
                       		<label>City:</label>
                        	<?=$rs['City']?>
                        </div>
                        
                        <div>
                        	<label>State:</label>
                        	<?=$rs['State']?>                     
                        </div>
                        
                        <div>
                       	 	<label>ZipCode:</label>
                        	<?=$rs['Zipcode']?>
                        </div>
                       
                        <div>
                        	<label>Country:</label>
                      		<?=$rs['Country']?>
                        </div>
						<br />
                        <div>
                        	<label>Created at:</label>
                        	<?=$rs['Created_at']?>
                        </div>
                        
                        <div>
                       	 	<label>Last Updated at:</label>
                        	<?=$rs['Updated_at']?>
                        </div>
     <br />                     
    <input type="button" value="Go Back" onclick="window.location.href='http://cs.newpaltz.edu/~N00001387/WebClass/DatabaseProject/AddressMgmt'" />                   
     <br />
     <input type="button" value="Go To Home Screen" onclick="window.location.href='http://cs.newpaltz.edu/~N00001387/WebClass/DatabaseProject/'" />
</body>
</html>
